﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TokenDemo2.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class EmployeeController:ControllerBase
    {
        [Authorize]
        public IActionResult Get()
        {
            return Ok(new string[] {"Employee1", "Employee2", "Employee3", "Employee4", "Employee5" });
        }
        
    }
}
